/**
 * Created by haowanh5 on 2016/11/1.
 */

console.log(+new Date());
console.log((new Date()).getTime());

setTimeout(function (num) {
    console.log(num);
}, 1000, 5);

var arr = [1,2,3,4,5,6];
for (var i = 0; i<arr.length; i++){
    if (arr[i] % 2 == 0) arr.splice(i, 1);
}
console.log(arr);